package com.smasher.modbus.weiqian;

import com.smasher.modbus.proxy.ModbusCommParam;

public class ModbusSerialPortParam extends ModbusCommParam {
    public String path;
    public int baud;
    public int databits;
    public String parity;
    public int stopbits;

    public ModbusSerialPortParam() {
    }

    public ModbusSerialPortParam(String path, int baud, int databits, String parity, int stopbits) {
        this.path = path;
        this.baud = baud;
        this.databits = databits;
        this.parity = parity;
        this.stopbits = stopbits;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public int getBaud() {
        return baud;
    }

    public void setBaud(int baud) {
        this.baud = baud;
    }

    public int getDatabits() {
        return databits;
    }

    public void setDatabits(int databits) {
        this.databits = databits;
    }

    public String getParity() {
        return parity;
    }

    public void setParity(String parity) {
        this.parity = parity;
    }

    public int getStopbits() {
        return stopbits;
    }

    public void setStopbits(int stopbits) {
        this.stopbits = stopbits;
    }
}
